<?php

namespace Blog\AccBundle\Entity;

/**
 * @orm:Entity
 * @orm:Table(name="membre")
 */
class Membre {
    /**
     *
     * @orm:ID
     * @orm:Column(type="integer")
     * @orm:GeneratedValue(strategy="AUTO")
     */
    protected  $id_membre;

    /**
     *
     * @orm:Column(type="string", length="50")
     */
    protected $pseudo;

    /**
     *
     * @orm:Column(type="string", length="50")
     */
    protected $mdp;

    /**
     *
     * @orm:Column(type="string", length="100")
     */
    protected $email;

    /**
     *
     * @orm:Column(type="datetime")
     */
    protected $date;

    /**
     *
     * @orm:Column(type="string", length="50")
     */
    protected $lien_validation;
    
    /**
     *
     * @orm:Column(type="string", length="100")
     */
    protected $avatar;

    /**
     *
     * @orm:Column(type="integer")
     */
    protected $statut;

    /**
     *
     * @orm:Column(type="string", length="50")
     */
    protected $nom;

    /**
     *
     * @orm:Column(type="string", length="50")
     */
    protected $prenom;

    /**
     * @orm:OneToMany(targetEntity="Blog\PostBundle\Entity\Post", mappedBy="membre")
     */
    protected $posts;

    /**
     * @orm:OneToMany(targetEntity="Forum\ForumBundle\Entity\Topic", mappedBy="membre")
     */
    protected $topics;

    /**
     * @orm:OneToMany(targetEntity="Forum\ForumBundle\Entity\Message", mappedBy="membre")
     */
    protected $messages;

    /**
     * @orm:OneToMany(targetEntity="Blog\PostBundle\Entity\Commentaire", mappedBy="membre")
     */
    protected $commentaires;

    /**
     *
     * @orm:ManyToOne(targetEntity="Blog\PostBundle\Entity\Labo", inversedBy="membres")
     * @orm:JoinColumn(name="labo", referencedColumnName="id_labo")
     */
    protected $labo;

    /**
     *
     * @orm:ManyToOne(targetEntity="Droit", inversedBy="membres")
     * @orm:JoinColumn(name="droit", referencedColumnName="id_droit")
     */
    protected $droit;

    function __construct(){
        $this->posts = new \Doctrine\Common\Collections\ArrayCollection();
        $this->topics = new \Doctrine\Common\Collections\ArrayCollection();
        $this->messages = new \Doctrine\Common\Collections\ArrayCollection();
        $this->commentaires = new \Doctrine\Common\Collections\ArrayCollection();

    }
    
    public function getId_membre() {
        return $this->id_membre;
    }

    public function getPseudo() {
        return $this->pseudo;
    }

    public function setPseudo($pseudo) {
        $this->pseudo = $pseudo;
    }

    public function getMdp() {
        return $this->mdp;
    }

    public function setMdp($mdp) {
        $this->mdp = $mdp;
    }

    public function getEmail() {
        return $this->email;
    }

    public function setEmail($email) {
        $this->email = $email;
    }

    public function getDate() {
        return $this->date;
    }

    public function setDate($date) {
        $this->date = $date;
    }

    public function getLien_validation() {
        return $this->lien_validation;
    }

    public function setLien_validation($lien_validation) {
        $this->lien_validation = $lien_validation;
    }

    public function getAvatar() {
        return $this->avatar;
    }

    public function setAvatar($avatar) {
        $this->avatar = $avatar;
    }

    public function getStatut() {
        return $this->statut;
    }

    public function setStatut($statut) {
        $this->statut = $statut;
    }

    public function getNom() {
        return $this->nom;
    }

    public function setNom($nom) {
        $this->nom = $nom;
    }

    public function getPrenom() {
        return $this->prenom;
    }

    public function setPrenom($prenom) {
        $this->prenom = $prenom;
    }

    public function getPosts() {
        return $this->posts;
    }

    public function setPosts($posts) {
        $this->posts = $posts;
    }

    public function getTopics() {
        return $this->topics;
    }

    public function setTopics($topics) {
        $this->topics = $topics;
    }

    public function getMessages() {
        return $this->messages;
    }

    public function setMessages($messages) {
        $this->messages = $messages;
    }

    public function getCommentaires() {
        return $this->commentaires;
    }

    public function setCommentaires($commentaires) {
        $this->commentaires = $commentaires;
    }

    public function getLabo() {
        return $this->labo;
    }

    public function setLabo($labo) {
        $this->labo = $labo;
    }

    public function getDroit() {
        return $this->droit;
    }

    public function setDroit($droit) {
        $this->droit = $droit;
    }


}

?>
